package chapter18.practice.p18_1_1;

import java.io.IOException;
import java.util.List;

public class MainTest {
	public static void main(String[] args) {
		String path = "d:/BaiduNetdiskDownload";
		new SortedDirList(path).list()
			.forEach((str) -> System.out.println(str));
		System.out.println("==================");
		new SortedDirList(path).list("^c.*$")
		.forEach((str) -> System.out.println(str));
		
		try {
			System.out.println(new DirSize(path).caculate());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}


}
